home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / games / anacroz.swf / scripts / DefineButton2_1672 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2010-11-09  |  806 b   |  26 lines

  1. on(press){
  2.    tropa1.setNome(_root.edTropaNome != "" ? _root.edTropaNome : "Tropa1");
  3.    if(_root.est_atacar._currentframe == 2)
  4.    {
  5.       tropa1.setEstrategia(0);
  6.    }
  7.    else if(_root.est_defender._currentframe == 2)
  8.    {
  9.       tropa1.setEstrategia(1);
  10.    }
  11.    else if(_root.est_recuar._currentframe == 2)
  12.    {
  13.       tropa1.setEstrategia(2);
  14.    }
  15.    tropa1.setLider(_root.createLider(_root.seletor_lider._currentframe));
  16.    tropa1.getLider().setNome(_root.edLider != "" ? _root.edLider : "Lider1");
  17.    tropa1.getLider().lider = true;
  18.    tropa1.getLider().tropa = 1;
  19.    tropa1.setFundos(_root.edFundos - _root.edLCusto);
  20.    _root.ld_sel = _root.seletor_lider._currentframe;
  21.    _root.edFundos = tropa1.getFundos();
  22.    _root.sd_sel = 0;
  23.    _root.destino = "soldados";
  24.    play();
  25. }
  26.